package com.terrier.ui.skins
{

    import flash.display.DisplayObject;
    import flash.display.Sprite;

    public class WxFlaSkinUtility
    {
        static public function getTextStyle(asset:Sprite, index:int):WxTextStyle
        {
            if (asset == null || asset.numChildren == 0 || asset.numChildren < index)
            {
                return null;
            }
            return WxAssetUtility.getTextStyle(asset, asset.numChildren - index);
        }

        static public function getDisplayObject(asset:Sprite, index:int):DisplayObject
        {
            if (asset == null || asset.numChildren == 0 || asset.numChildren < index)
            {
                return null;
            }
            return asset.getChildAt(asset.numChildren - index);
        }
    }
}
